﻿<UserControl x:Class="Lights.Page.EditingPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Lights.Controls"
             mc:Ignorable="d" 
             IsEnabled="False"
             d:DesignHeight="480" d:DesignWidth="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="130"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="220"/>
        </Grid.ColumnDefinitions>
        <GroupBox Header="Modifiche">
            <ListView Name="lstEdits" />
        </GroupBox>
        <Image Name="img" Grid.Column="1" Margin="12" />
        <GroupBox Header="Strumenti:" Grid.Column="2" >
            <StackPanel>
                <Expander Header="Istogramma" IsExpanded="True">
                    <local:HistogramViewer x:Name="ctrlHistogram" Height="100" Margin="3"/>
                </Expander>
                <Expander Header="Livelli" IsExpanded="True">
                    <StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Luminosità" Margin="3" VerticalAlignment="Center" Width="60"/>
                            <Slider Name="sldBrightness" Margin="3" VerticalAlignment="Center" Width="100" Minimum="-255" Maximum="255" IsSnapToTickEnabled="True" TickFrequency="1" ValueChanged="sldLuminance_ValueChanged"/>
                            <TextBox Text="{Binding ElementName=sldBrightness, Path=Value, Mode=TwoWay}" Width="30" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Contrasto" Margin="3" VerticalAlignment="Center" Width="60"/>
                            <Slider Name="sldContrast" Margin="3" VerticalAlignment="Center" Width="100" Minimum="-255" Maximum="255" IsSnapToTickEnabled="True" TickFrequency="1" ValueChanged="sldLuminance_ValueChanged"/>
                            <TextBox Text="{Binding ElementName=sldContrast, Path=Value, Mode=TwoWay}" Width="30" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
                        </StackPanel>
                    </StackPanel>
                </Expander>
            </StackPanel>
        </GroupBox>
    </Grid>
</UserControl>
